package com.ursu.client.view;

import com.gwtplatform.mvp.client.ViewImpl;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.user.client.ui.Widget;
import com.google.inject.Inject;
import com.ursu.client.presenter.CreateAdminPresenter;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.PasswordTextBox;

public class CreateAdminView extends ViewImpl implements
		CreateAdminPresenter.MyView {

	private final Widget widget;

	public interface Binder extends UiBinder<Widget, CreateAdminView> {
	}

	@Inject
	public CreateAdminView(final Binder binder) {
		widget = binder.createAndBindUi(this);
	}

	@Override
	public Widget asWidget() {
		return widget;
	}
	@UiField Button logoutBtn;
	@UiField Button createAdminBtn;
	@UiField TextBox usernameBox;
	@UiField PasswordTextBox passwordBox;
	@UiField PasswordTextBox confPasswordBox;
	
	public Button getLogoutBtn() {
		return logoutBtn;
	}

	public Button getCreateAdminBtn() {
		return createAdminBtn;
	}

	public TextBox getUsernameBox() {
		return usernameBox;
	}

	public PasswordTextBox getPasswordBox() {
		return passwordBox;
	}

	public PasswordTextBox getConfPasswordBox() {
		return confPasswordBox;
	}
	
	
}
